#include "course.h"

	Course::Course(){
		c_id = "";
		s_id = "";
		l_id = "";
		sem = 0;
		room = "";
		time = "";
	}
	
	Course::Course(string i_c_id, string i_s_id, string i_l_id, short i_sem, string i_room, string i_time){
		c_id = i_c_id;
		s_id = i_s_id;
		l_id = i_l_id;
		sem = i_sem;
		room = i_room;
		time = i_time;
	}
	string Course::getCourseID(){
		return c_id;
	}
	string Course::getLecturerID(){
		return l_id;
	}
	string Course::getSubjectID(){
		return s_id;
	}
	short Course::getSem(){
		return sem;
	}
	string Course::getRoom(){
		return room;
	}
	string Course::getTime(){
		return time;
	}
	string Course::getInfo(){
		ostringstream os;
		os<<c_id<<"::"<<l_id<<"::"<<s_id<<"::"<<sem<<"::"<<room<<"::"<<time;
		return os.str();
	}
	void Course::setLecturerID(string inp_lid){
		l_id = inp_lid;
	}
	void Course::setSubjectID(string inp_sid){
		s_id = inp_sid;
	}
	void Course::setSem(short inp_sem){
		sem = inp_sem;
	}
	void Course::setRoom(string inp_room){
		room = inp_room;
	}
	void Course::setTime(string inp_time){
		time = inp_time;
	}
	
	